//
//  CartLikeCell.m
//  zhongwulegou
//
//  Created by qianfeng on 15/9/25.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import "CartLikeCell.h"
#import "CartLikeGoodCell.h"

@implementation CartLikeCell

- (void)awakeFromNib {
    // Initialization code

    [self.likeCollectionView registerNib:[UINib nibWithNibName:@"CartLikeGoodCell" bundle:nil] forCellWithReuseIdentifier:@"CartLikeGoodCell"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


#pragma mark -UICollectionViewDataSource
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 16;
}
//cell 复用
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    CartLikeGoodCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"CartLikeGoodCell" forIndexPath:indexPath];
    return cell;
}

//使cell 能够充满屏幕
-(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    //使cell 充满 collectionView
    return CGSizeMake(150, 200);
}

@end
